package com.asia5b.a5mall.middleware.model.bean

/**
 * Created by zhangyuncai on 2020/3/9.
 */
interface SelectText {
    companion object {
        fun newInstance(text: String, id: Int): SelectText {
            return object : SelectText {
                override fun getText(): String {
                    return text
                }

                override fun getSelectId(): Int {
                    return id
                }

            }
        }
    }

    fun getText(): String

    fun getSelectId(): Int {
        return -1
    }
}